﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace dbPoll_Application.Helpers
{
    public static class StringExtensions
    {
        public static String CropAndTrail(this String str, int limit, String trail)
        {
            if (str.Length > limit)
            {
                return str.Substring(0, limit) + trail;
            }
            return str;
        }
    }
}
